#include <cstdio>
#include <cstring>

// Opens file for reading. In case of error, an exception is thrown.
FILE *fileOpenRead(const char *path);
FILE *fileOpenWrite(const char *path);

void stringCopyN(char *dst, size_t size, const char *src, size_t count);

